/**
 * Note: sub-menu only appear when route children.length >= 1
 * Detail see: https://panjiachen.github.io/vue-element-admin-site/guide/essentials/router-and-nav.html
 *
 * hidden: true                   if set true, item will not show in the sidebar(default is false)
 * alwaysShow: true               if set true, will always show the root menu
 *                                if not set alwaysShow, when item has more than one children route,
 *                                it will becomes nested mode, otherwise not show the root menu
 * redirect: noRedirect           if set noRedirect will no redirect in the breadcrumb
 * name:'router-name'             the name is used by <keep-alive> (must set!!!)
 * meta : {
    roles: ['admin','editor']    control the page roles (you can set multiple roles)
    title: 'title'               the name show in sidebar and breadcrumb (recommend set)
    icon: 'svg-name'             the icon show in the sidebar
    breadcrumb: false            if set false, the item will hidden in breadcrumb(default is true)
    activeMenu: '/example/list'  if set path, the sidebar will highlight the path you set
  }
 */
import Layout from '@/layout'
export default [
  {
    path: '/statistics',
    component: Layout,
    redirect: '/statistics/career',
    meta: { title: '数据分析', icon: 'form', roles: ['*', '高中-PC生涯测评报告'] },
    children: [
      {
        path: 'career',
        name: 'statistics-career',
        component: () => import('@/views/statistics/career'),
        meta: { title: '生涯测评分析', activeMenu: '/statistics/career' }
      },
      {
        path: 'career-pc',
        name: 'pc-statistics-career',
        component: () => import('@/views/pc-statistics/career'),
        meta: { title: 'PC生涯测评分析', activeMenu: '/statistics/career-pc', roles: ['高中-PC生涯测评报告'] }
      },
      {
        path: 'career-pc/complex',
        hidden: true,
        name: 'pc-statistics-career-complex',
        component: () => import('@/views/pc-statistics/career-complex'),
        meta: { title: '综合测评完成情况详情', activeMenu: '/statistics/career-pc', roles: ['高中-PC生涯测评报告'] }
      },
      {
        path: 'career-pc/single',
        hidden: true,
        name: 'pc-statistics-career-single',
        component: () => import('@/views/pc-statistics/career-single'),
        meta: { title: '单项类测试结果', activeMenu: '/statistics/career-pc', roles: ['高中-PC生涯测评报告'] }
      },
      {
        path: 'career-pc/recommend',
        hidden: true,
        name: 'pc-statistics-career-recommend',
        component: () => import('@/views/pc-statistics/career-recommend'),
        meta: { title: '推荐专业结果页', activeMenu: '/statistics/career-pc', roles: ['高中-PC生涯测评报告'] }
      },
      {
        path: 'career/complex',
        hidden: true,
        name: 'statistics-career-complex',
        component: () => import('@/views/statistics/career-complex'),
        meta: { title: '综合测评完成情况详情', activeMenu: '/statistics/career' }
      },
      {
        path: 'career/single',
        hidden: true,
        name: 'statistics-career-single',
        component: () => import('@/views/statistics/career-single'),
        meta: { title: '单项类测试结果', activeMenu: '/statistics/career' }
      },
      {
        path: 'career/recommend',
        hidden: true,
        name: 'statistics-career-recommend',
        component: () => import('@/views/statistics/career-recommend'),
        meta: { title: '推荐专业结果页', activeMenu: '/statistics/career' }
      },
      {
        path: 'course',
        name: 'statistics-course',
        component: () => import('@/views/statistics/course'),
        meta: { title: '选科选课分析', activeMenu: '/statistics/course' }
      },
      {
        path: 'course/complete',
        hidden: true,
        name: 'statistics-course-complete',
        component: () => import('@/views/statistics/course-complete'),
        meta: { title: '完成情况详情', activeMenu: '/statistics/course' }
      },
      {
        path: 'course/intention',
        hidden: true,
        name: 'statistics-course-intention',
        component: () => import('@/views/statistics/course-intention'),
        meta: { title: '意向专业详情', activeMenu: '/statistics/course' }
      },
      {
        path: 'course/advantage',
        hidden: true,
        name: 'statistics-course-advantage',
        component: () => import('@/views/statistics/course-advantage'),
        meta: { title: '优势科目排序详情', activeMenu: '/statistics/course' }
      },
      {
        path: 'course/best',
        hidden: true,
        name: 'statistics-course-best',
        component: () => import('@/views/statistics/course-best'),
        meta: { title: '最佳方案详情', activeMenu: '/statistics/course' }
      },
      {
        path: 'course/best/detail/:id',
        hidden: true,
        name: 'statistics-course-best-detail',
        component: () => import('@/views/statistics/course-best-detail'),
        meta: { title: '最佳方案详情', activeMenu: '/statistics/course' }
      }
      // {
      //   path: 'ranking',
      //   name: 'statistics-ranking',
      //   component: () => import('@/views/statistics/ranking-index'),
      //   meta: { title: '升学策略分析', activeMenu: '/statistics/ranking' }
      // },
      // {
      //   path: 'ranking/complete',
      //   name: 'statistics-ranking-complete',
      //   hidden: true,
      //   component: () => import('@/views/statistics/ranking-complete'),
      //   meta: { title: '完成情况详情', activeMenu: '/statistics/ranking' }
      // },
      // {
      //   path: 'ranking/academy',
      //   name: 'statistics-ranking-academy',
      //   hidden: true,
      //   component: () => import('@/views/statistics/ranking-academy'),
      //   meta: { title: '目标院校', activeMenu: '/statistics/ranking' }
      // },
      // {
      //   path: 'ranking/major',
      //   name: 'statistics-ranking-major',
      //   hidden: true,
      //   component: () => import('@/views/statistics/ranking-major'),
      //   meta: { title: '目标专业', activeMenu: '/statistics/ranking' }
      // },
      // {
      //   path: 'ranking/entrance',
      //   name: 'statistics-ranking-entrance',
      //   hidden: true,
      //   component: () => import('@/views/statistics/ranking-entrance'),
      //   meta: { title: '升学途径', activeMenu: '/statistics/ranking' }
      // },
      // {
      //   path: 'ranking/strategy',
      //   name: 'statistics-ranking-strategy',
      //   hidden: true,
      //   component: () => import('@/views/statistics/ranking-strategy'),
      //   meta: { title: '成绩策略', activeMenu: '/statistics/ranking' }
      // }
    ]
  }
]
